how to create data frame